package com.studysecurity.mysecurity.user;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum Permission {

    USER_READ("user:read"),
    USER_CREATE("user:create"),
    USER_DELETE("user:delete"),
    USER_UPDATE("user:update"),

    ADMIN_READ("admin:read"),
    ADMIN_CREATE("admin:create"),
    ADMIN_DELETE("admin:delete"),
    ADMIN_UPDATE("admin:update"),


    MANAGER_READ("management:read"),
    MANAGER_CREATE("management:create"),
    MANAGER_DELETE("management:delete"),
    MANAGER_UPDATE("management:update");

    public String getPermission() {
        return permission;
    }

    private final String permission;

//    Permission(String permission) {
//        this.permission = permission;
//    }

    }
